import java.io.IOException;
import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws IOException {
        Scanner sc = new Scanner(System.in);
        int choice = 0;
        Demo01 demo01 = new Demo01();
        Demo02 demo02 = new Demo02();
        Demo03 demo03 = new Demo03();
        System.out.println("1.Demo01"+'\n'+"2.Demo02"+'\n'+"3.Demo03");
        System.out.println("请先进行1，再进行2");
        while (true) {
            System.out.println("请输入您的选择：");
            choice = sc.nextInt();
            switch (choice){
                case 1:{
                    demo01.writer();
                    demo01.count();
                    break;
                }
                case 2:{
                    demo02.copy();
                    break;
                }
                case 3:{
                    demo03.toList();
                    break;
                }
            }
        }
    }
}